<div class="am-u-sm-12 widget main-w" >	
	<div style="padding: 10px;" class="am-u-sm-12">
		<div><button style="float: right;" type="button" class="am-btn am-btn-default am-radius am-btn-xs" style="margin-top: -2px;">导出文件</button></div>
		<table width="100%" class="am-table am-table-compact am-text-nowrap tpl-table-black">
			<thead>
				<tr>
					{if $op == 'search'}
					<th>操作</th>
					{else/}
					{/if}
					<th>优惠卷类型名称</th>
					<th>满多少</th>
					<th>减多少</th>
					<th>折扣</th>
					<th>状态</th>
					{if $op == 'search'}
					{else/}
					<th>操作</th>
					{/if}
				</tr>
			</thead>
			<tbody>
				{foreach $list as $key => $item}
				<tr data-id='{$item.coupon_type_id}'>
					{if $op == 'search'}
					<td>
						<div class="tpl-table-black-operation">
							<a class="pitchon" data-id='{$item.coupon_type_id}' data-name='{$item.name}'>
								<i class="am-icon-pencil"></i> 选中
							</a>
						</div>
					</td>
					{else/}
					{/if}
					
					<td>{$item.name}</td>
					<td>{$item.full_price}</td>
					<td>{$item.reduce_price}</td>
					<td>{$item.discount}</td>
					<td class="am-text-{$item.state==9?'danger':'success'}">{$item.state==9?'已禁用':'已启用'}</td>
					{if $op == 'search'}
					{else/}
					<td>
						<div class="tpl-table-black-operation">
							{if $item.state == 9}
							<a href="javascript:;" class="startusing" data-method="startusing">
								<i class="am-icon-pencil"></i> 启用
							</a>
							{else/}
							<a href="javascript:;" class="tpl-table-black-operation-del forbidden" data-method="forbidden">
								<i class="am-icon-trash"></i> 禁用
							</a>
							{/if}
							<a href="{:url('edit',['coupon_type_id'=>$item.coupon_type_id])}">
								<i class="am-icon-pencil"></i> 编辑
							</a>
							<a href="javascript:;" class="tpl-table-black-operation-del delete-list" data-method="delete">
								<i class="am-icon-trash"></i> 删除
							</a>
						</div>
					</td>
					{/if}
				</tr>
				{/foreach}
				<!-- more data -->
			</tbody>

		</table>
		<div class="am-u-lg-12 am-cf">
			<div>
				<a href="{:url('add')}" type="button" class="am-btn am-btn-sm am-btn-primary am-radius" style="margin-top: -2px;">添加优惠卷类型</a>
			</div>
			<div class="am-fr">
				{$pages}
			</div>
		</div>
	</div>

</div>
